package com.example.pufang.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@TableName(value = "pf_house_view_log")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("浏览日志表")
@Accessors(chain = true)
public class HouseViewLog {

    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "日志id")
    private String id;

    @ApiModelProperty(value = "浏览人id")
    private Integer userId;

    @ApiModelProperty(value = "浏览房源id")
    private String houseId;

    @ApiModelProperty(value = "浏览时间")
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}
